home *** CD-ROM | disk | FTP | other *** search
- Path: STERLING.COM!Ross_Patterson
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Newsgroups: comp.lang.rexx
- Message-ID: <199604161210.IAA16964@mail.Reston.VMD.Sterling.COM>
- Date: Tue, 16 Apr 1996 08:50:59 EDT
- Sender: REXX Programming discussion list <REXXLIST@UGA.CC.UGA.EDU>
- From: Ross Patterson <Ross_Patterson@STERLING.COM>
- Subject: Re: Date arithmetic missing in REXX
-
- javier5@IBM.NET writes:
-
- >Today I was revising a program at work (OS2 REXX) and to my
- >surprise I could not find a way to do date arithmetic. I found
- >the date("base") which returs a julian date, but I could not
- >find anything that takes that format back into any other format.
- >
- >
- >Did I mean something?
-
- No, you didn't miss anything. REXX level 4 (the one implemented on
- most platforms) does not require any date conversion routines. All it
- requires is that the Date() function return the current date in a
- variety of formats.
-
- > I would think that date arithmetic should
- >be something that one would want as part of the standard REXX.
-
- The ANSI REXX Committee agreed with you. ANSI-standard REXX adds
- arguments to the Date() function for specifying a date to be converted
- and the format in which it is represented. With that, and using
- the Basedate format, you can do all the math you want. Watch out if
- you interests lie before the 20th century, however, as the algorithm
- for calulating basedates doesn't take into account the widely varying
- dates for adoption of the Gregorian calendar.
-
- Now, if only we had some ANSI-standard REXX implementations available!
- But I guess it's too early to be whining.
-
- Ross Patterson
- Sterling Software, Inc.
- VM Software Division
-